package com.fangsheng.customstart.service;


import com.fangsheng.customstart.entity.WelProperties;
import org.springframework.beans.factory.annotation.Autowired;

//定义业务类，用于获取用户的配置信息，并实现我们的应用 场景
public class WelService {

    @Autowired
    private WelProperties welProperties;


    public WelProperties getWelProperties() {
        return welProperties;
    }

    public void setWelProperties(WelProperties welProperties) {
        this.welProperties = welProperties;
    }

    /*实现我们的业务场景*/
    public String  wel(String name){
        return welProperties.getPrefix()+name+welProperties.getSuffix();
    }


}
